<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<div id="test"></div>

	<script src="./lib/jquery-2.2.4.min.js"></script>

	<script>
		$(function() {
			$.ajax({
				url: '/test',
				type: 'get',
				dataType: 'json',
				// data: {param1: 'value1'},
			})
			.done(function(res) {
				console.log(res)
				console.log("success");
				$('#test').html(res.a);
			})
			.fail(function() {
				console.log("error");
			})
			.always(function() {
				console.log("complete");
			});
			
		})
	</script>
</body>
</html>